﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PageSetting.aspx.cs" Inherits="CMS_Admin_PageSetting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />

    <script type="text/javascript" src="../../JQuery/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../js/easy_widgets/jquery-ui.min.js"></script>

    <script type="text/javascript" src="../js/easy_widgets/jquery.easywidgets.js"></script>

    <script src="../js/jquery-mztree/jquery.thickbox.js" type="text/javascript"></script>

    <link rel="stylesheet" href="../js/jquery-mztree/thickbox.css" type="text/css" media="screen" />

    <script type="text/javascript">
        function GetCookie(name) {  //取得名称为name的cookie值  
            var arg = name + "=";
            var alen = arg.length;
            var clen = document.cookie.length;
            var i = 0;
            while (i < clen) {
                var j = i + alen;
                if (document.cookie.substring(i, j) == arg)
                    return getCookieVal(j);
                i = document.cookie.indexOf(" ", i) + 1;
                if (i == 0) break;
            }
            return null;
        }

        function getCookieVal(offset) {       //取得项名称为offset的cookie值  
            var endstr = document.cookie.indexOf(";", offset);
            if (endstr == -1)
                endstr = document.cookie.length;
            return unescape(document.cookie.substring(offset, endstr));
        }



        function Deletecookie(name) {  //删除名称为name的Cookie  
            var exp = new Date();
            exp.setTime(exp.getTime() - 1);
            var cval = GetCookie(name);
            document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
        }

        $(document).ready(function() {
            Deletecookie('ew-position');
            Deletecookie('ew-collapse');
            Deletecookie('ew-disable');
            Deletecookie('ew-close');
            $.fn.EasyWidgets({
                behaviour: {
                    useCookies: true
                },
                i18n: {
                    editText: '编辑',
                    closeText: '隐藏该模块',
                    extendText: '展开',
                    collapseText: '折叠',
                    cancelEditText: '取消'
                }
            });
        });


        function doit(num, id,name) {
            var div = document.createElement('div');
            div.className = 'widget movable removable';
            div.innerHTML = " <DIV class=widget-header><STRONG>可以拖动</STRONG> </DIV><DIV class=widget-content>不可以拖动布局的内容拖动块的class没有movable值</DIV>";
            div.id = id;
            document.getElementById('widget-place-' + num).appendChild(div);

            $.fn.EasyWidgets({
                behaviour: {
                    useCookies: false
                },
                i18n: {
                    editText: '编辑',
                    closeText: '删除该模块',
                    extendText: '展开',
                    collapseText: '折叠',
                    cancelEditText: '取消'
                }
            });


        }
    </script>

    <style type="text/css">
        BODY
        {
            margin: 0px;
            font-size: 12px;
            text-align: center;
        }
        #top
        {
            border-bottom: #cc6666 1px solid;
            border-left: #cc6666 1px solid;
            margin: 0px auto;
            width: 100%;
            border-top: #cc6666 1px solid;
            border-right: #cc6666 1px solid;
            color: #ccc;
            font-size: 20px;
            text-align: center;
        }
        #main
        {
            border-bottom: #cc6666 1px solid;
            border-left: #cc6666 1px solid;
            margin: 0px auto;
            width: 100%;
            border-top: #cc6666 1px solid;
            border-right: #cc6666 1px solid;
        }
        #bottom
        {
            border-bottom: #cc6666 1px solid;
            border-left: #cc6666 1px solid;
            margin: 0px auto;
            width: 100%;
            border-top: #cc6666 1px solid;
            border-right: #cc6666 1px solid;
            color: #ccc;
            font-size: 20px;
            text-align: center;
        }
        #top
        {
            margin-bottom: 5px;
            height: 100px;
        }
        #main
        {
            padding-bottom: 5px;
            padding-left: 0px;
            padding-right: 0px;
            padding-top: 5px;
        }
        #bottom
        {
            margin-top: 5px;
            height: 50px;
        }
        #main .widget-place
        {
            padding-bottom: 0px;
            margin: 0px;
            min-height: 200px;
            padding-left: 0px;
            width: 310px;
            padding-right: 0px;
            float: left;
            height: auto;
            padding-top: 0px;
            divst-style: none;
        }
        #main .column1
        {
            margin-left: 4px;
            width: 100%;
        }
        #main .column2
        {
            margin-left: 5px;
            margin-right: 5px;
            width: 100%;
        }
        #main .widget
        {
            border-bottom: #cc99cc 1px solid;
            border-left: #cc99cc 1px solid;
            margin-bottom: 5px;
            border-top: #cc99cc 1px solid;
            border-right: #cc99cc 1px solid;
            margin-top: 10px;
        }
        #main .widget-header
        {
            line-height: 30px;
            background: #eee;
        }
        #main .widget-header A
        {
            margin-left: 8px;
        }
        .c2_1
        {
            background: #eee;
        }
        .widget-placeholder
        {
            border-bottom: #ff99cc 2px dashed;
            border-left: #ff99cc 2px dashed;
            border-top: #ff99cc 2px dashed;
            border-right: #ff99cc 2px dashed;
        }
        #body
        {
            width: 980px;
            text-align: center;
        }
        .dvleft
        {
            float: left;
            width: 240px;
            margin-left: 10px;
            text-align: left;
        }
        .dvright
        {
            float: left;
            width: 680px;
            margin-left: 10px;
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="body">
        <div id="top">
            Hyperion 页头
        </div>
        <div style="text-align: right; padding: 5px">
            <asp:Button ID="Button1" Text=" 取 消 保 存 并 刷 新 本 页 " runat="server" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="save" Text=" 保 存 " runat="server" OnClick="save_Click" OnClientClick="return confirm('确认保存布局')"
                Width="100px" />
        </div>
        <div id="main">
            <asp:Literal ID="mainappend" runat="server"></asp:Literal>
        </div>
        <div id="bottom">
            Hyperion 页脚</div>
    </div>
    </form>
</body>
</html>
